import 'package:flutter/cupertino.dart';
import 'package:reactive_forms/reactive_forms.dart';

/// A reactive star rating widget that two-way binds
/// to a FormControl<double>.
class ReactiveCountryStateCity extends ReactiveFormField<String, String> {
  /// Constructs an instance of [ReactiveStarRating].
  ///
  /// The argument [formControlName] must not be null.
  ReactiveCountryStateCity({
    required String formControlName,
  }) : super(
          formControlName: formControlName,
          builder: (ReactiveFormFieldState<String, String> field) {
            // RatingBar inner widget
            // return RatingBar(
            //   // set UI value when control changes
            //   initialRating: field.value,
            //   // set control value when UI changes
            //   onRatingUpdate: field.didChange,
            //   itemBuilder: (context, _) => Icon(Icons.star),
            // );
            return Text('data');
          },
        );

  @override
  ReactiveFormFieldState<String, String> createState() =>
      ReactiveFormFieldState<String, String>();
}
